<?xml version="1.0"?>
<component name="org.nuxeo.theme.html.override">

  <require>org.nuxeo.theme.html</require>

  <documentation>

    Contributions to the HTML implementation of NXThemes.
    Web-related features and resources are registered here.
    @author Jean-Marc Orliaguet (jmo@chalmers.se)
  

  </documentation>
  <extension point="views" target="org.nuxeo.theme.services.ThemeService">

    <view template-engine="html">
      <format-type>layout</format-type>
      <class>
        org.nuxeo.theme.html.filters.layout.DefaultLayoutView
      </class>
    </view>

    <view template-engine="html">
      <format-type>style</format-type>
      <class>
        org.nuxeo.theme.html.filters.style.DefaultStyleView
      </class>
    </view>

    <view name="theme view" template-engine="html">
      <element-type>theme</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/html/widgets/theme-view.xml</template>
      <resource>nxthemes.css</resource>
      <resource>autosuggest.css</resource>
    </view>

    <view name="page frame" template-engine="html">
      <element-type>page</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/html/widgets/page-frame.xml</template>
    </view>

    <view name="section frame" template-engine="html">
      <element-type>section</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/html/widgets/section-frame.xml</template>
    </view>

    <view name="cell frame" template-engine="html">
      <element-type>cell</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/html/widgets/cell-frame.xml</template>
    </view>

    <view name="vertical menu" template-engine="html">
      <element-type>fragment</element-type>
      <format-type>widget</format-type>
      <model-type>menu item</model-type>
      <template>nxthemes/html/widgets/vertical-menu.xml</template>
    </view>

    <view name="horizontal tabs" template-engine="html">
      <element-type>fragment</element-type>
      <format-type>widget</format-type>
      <model-type>menu item</model-type>
      <template>
        nxthemes/html/widgets/horizontal-tabs.xml
      </template>
    </view>

    <view name="plain text" template-engine="html">
      <element-type>fragment</element-type>
      <format-type>widget</format-type>
      <model-type>text</model-type>
      <template>nxthemes/html/widgets/plain-text.xml</template>
    </view>

    <view name="plain html" template-engine="html">
      <element-type>fragment</element-type>
      <format-type>widget</format-type>
      <model-type>html</model-type>
      <template>nxthemes/html/widgets/plain-html.xml</template>
    </view>

  </extension>

</component>
